﻿using System;
using UtilZ.Dotnet.Ex.Communication.Base;

namespace UtilZ.Dotnet.Ex.Communication.Net.DataTransfer.Base
{
    /// <summary>
    /// 传输数据选项
    /// </summary>
    public interface ITransferDataOptions : ISendOptions
    {
        /// <summary>
        /// 发送优先级
        /// </summary>
        byte PriorityLevel { get; }

        /// <summary>
        /// 发送数据超时毫秒数
        /// </summary>
        int MillisecondsTimeout { get; }

        /// <summary>
        /// 超时次数门限,当达到此值时,输出发送失败,小于等于0表示无限次
        /// </summary>
        int TimeoutLimit { get; }

    }
}
